package cn.gbase.verify.service;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.gbase.verify.entity.Identity;

@Service
public class IdentityService {

/*	@Autowired
	private Dao dao;*/
    @Autowired
	private IdentityMapper mapper;
	 
/*	public Identity get(String dn){
		return dao.fetch(Identity.class, Cnd.where("dn", "=", dn));
	}*/
	public Identity get1(String dn){
		return mapper.selectByPrimaryKey(dn);
	}
}
